package com.yueyang.sojourn.server.service.sojourn.projectshare;

import com.yueyang.sojourn.server.model.po.SojournProjectShareLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author Andy.yang
 * @version v1
 * @summary
 * @Copyright (c) 2019, YueYang Group All Rights Reserved.
 * @since 2020/3/28
 */
@Mapper
public interface SojournProjectShareLogMapper {
    /**
     * 创建分账操作记录
     * @param shareLog
     * @return
     */
    int insert(SojournProjectShareLog shareLog);

    /**
     * 查询分账操作记录
     * @param id
     * @return
     */
    SojournProjectShareLog selectByPrimaryKey(Long id);

    /**
     * 根据项目查询分账修改记录
     * @param projectId
     * @return
     */
    List<SojournProjectShareLog> findByProjectId(@Param("projectId") Long projectId);
}
